<script>
function go()
{
	var pid = document.getElementById("product_id").value;
	var link = document.getElementById("link").value;
	if(pid == ""){
	
	} else {
		$(document).ready(function(){
			var url = link + "&product_id=" + pid;
			$(location).attr('href',url);
		});
	}
}
</script>

<div class="box">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content">
      <div>
			<form name="input">
			<input type="text" size="15" name="product_id" id="product_id">
			<input type="hidden" name="link" id="link" value="<?php echo $link; ?>">
			<input type="button"  onclick="go();" value="Go">
		</form>		
	  </div>
	  
  </div>
</div>
